import Api from '@/config/server/api/order.js'
import dt from '@dt/dt'
import tool from '@/common/tool'

function listInfo(params) {
  return Api.paymentManagement.selectPayBackList.fetch(params).then(res => {
    res.list && res.list.forEach((item) => {
      tool.transformationNull(item)
    })
    return res
  })
}

function paymentConfirmation(params) {
  return Api.paymentManagement.paymentConfirmation.fetch(params)
}

function exportPayBackList(params) {
  return Api.paymentManagement.exportPayBackList.fetch(params)
}

export default {
  listInfo,
  paymentConfirmation,
  exportPayBackList
}